using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class DealersToMatchFromUsixDataSource : ObjectDataSourceBase {
		public override string SelectViewName { get { return "usix.DealersToMatchFromUsix(@Name)"; } }
		public override string InsertViewName { get { throw new NotImplementedException(); } }
		public string Name { set { SetSelectParameter("Name", value); } }
		public int MinDistance { set { SetSelectParameter("MinDistance", value); } }
		public DataView SelectEx(string Name,int MinDistance) {
			UseNoLock = false;
			Filters.Add("Distance", ">=" + MinDistance);
			return Select("",Name+"");
		}
	}
}